using System;
using System.Collections.Generic;
using System.Text;

namespace Deepcode.Flux.Core.Systems.Workflow.Enums
{
	/// <summary>
	/// Static class providing conversion and lookup utilities
	/// </summary>
	public static class WorkflowTimescaleUtils
	{
		/// <summary>
		/// Gets the name of a timescale based on the value
		/// </summary>
		/// <param name="Units"></param>
		/// <returns></returns>
		public static string GetTimescaleName(WorkflowTimescale Units)
		{
			switch (Units)
			{
				case WorkflowTimescale.MINUTE:
					return "Minute(s)";
				case WorkflowTimescale.HOUR:
					return "Hour(s)";
				case WorkflowTimescale.DAY:
					return "Day(s)";
				case WorkflowTimescale.MONTH:
					return "Month(s)";
				case WorkflowTimescale.YEAR:
					return "Year(s)";
			}
			return "";
		}
	}
}
